package com.lou.springboot.enums;

public enum ResultEnum {
    PARAM_ERROR("参数错误", 1, 400),
    NOT_FOUND("没有数据", 2, 404),
    ID_IS_EXIST("id已经存在", 3, 400),
    CAPTCHA_ERROR("验证码错误",4,400),
    ORIGINAL_PASSWORD("原密码错误", 5, 400),
    CATEGORY_NAME_ERROR("分类名称错误",6,400),
    CATEGORY_ICON_ERROR("分类图标错误",7,400),
    CATEGORY_NAME_REPEAT("分类名称重复", 8,400),
    DELETE_FAILED("删除失败",9,999),
    INSERT_FAILED("添加失败",10,999),
    TAG_NAME_REPEAT("标签名称重复",11,400),
    READER_ADD_FAILED("创建读者失败", 12, 500);
    ;

    public final String message;
    public final Integer code;
    public final Integer status;
    ResultEnum(String message, Integer code, Integer status){
        this.message = message;
        this.code = code;
        this.status = status;
    }
}
